//
//  JSON.m
//  HomeWork_UI_13
//
//  Created by 李劲成 on 16/3/25.
//  Copyright © 2016年 ljc. All rights reserved.
//

#import "JSON.h"

@implementation JSON

+(id)JSONWithName:(NSString *)name type:(NSString *)type {
    
    NSString *path = [[NSBundle mainBundle]pathForResource:name ofType:type];
    
    NSData *data = [NSData dataWithContentsOfFile:path];
    
    id result = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    
    return result;
    
}


@end
